﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kooboo.IoC;

namespace Kooboo.Commerce.Repositories
{
    public class Entity
    {
        CommerceDataContext _DataContext;
        protected CommerceDataContext DataContext
        {
            get
            {
                if(this._DataContext == null)
                {
                   // this._DataContext = ContextContainer.Current.Resolve<DataReaderContext>();
                    this._DataContext = ContextContainer.Current.Resolve<DataWriterContext>();
                }

                return this._DataContext;
            }
        }

  
    }
}
